home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-09-22 | 953 b | 35 lines |
- /*
- * @(#)EventObject.java 1.6 98/07/01
- *
- * Copyright 1995-1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.util;
-
- public class EventObject implements java.io.Serializable {
- protected transient Object source;
-
- public EventObject(Object source) {
- if (source == null)
- throw new IllegalArgumentException("null source");
-
- this.source = source;
- }
-
- public Object getSource() {
- return source;
- }
-
- public String toString() {
- return getClass().getName() + "[source=" + source + "]";
- }
- }
-